package com.free.semantic.req;

import java.util.ArrayList;
import java.util.List;

public class RelationDefineGroup {


    List<RelationDefine> relationDefines = new ArrayList<>();

    public RelationDefineGroup(RelationDefine... relationDefine) {
        relationDefines.addAll(new ArrayList<>(relationDefines));
    }

    public void addDefine(String relationName, List<RelaItemDef> relaItemDefs) {
        RelationDefine define = new RelationDefine();
        define.setName(relationName);
        define.setRelaItemDefs(relaItemDefs);
        relationDefines.add(define);
    }

    public List<RelationDefine> getRelationDefines() {
        return relationDefines;
    }

}
